package com.zb.frame.modules.common.controller;

import com.zb.frame.base.model.AuthUserInfo;
import org.apache.shiro.SecurityUtils;

public class AbstractController {

    protected AuthUserInfo getUser() {
        return (AuthUserInfo) SecurityUtils.getSubject().getPrincipal();
    }

    protected Long getUserId() {
        return getUser().getUserId();
    }
}
